Optimal. Leaf size=56 \[ \frac{4 x^3}{15}-\frac{33 x^2}{50}+\frac{229}{625} \log \left (5 x^2+2 x+3\right )+\frac{81 x}{125}-\frac{423 \tan ^{-1}\left (\frac{5 x+1}{\sqrt{14}}\right )}{625 \sqrt{14}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0486828, antiderivative size = 56, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 5, integrand size = 31, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.161, Rules used = {1657, 634, 618, 204, 628} \[ \frac{4 x^3}{15}-\frac{33 x^2}{50}+\frac{229}{625} \log \left (5 x^2+2 x+3\right )+\frac{81 x}{125}-\frac{423 \tan ^{-1}\left (\frac{5 x+1}{\sqrt{14}}\right )}{625 \sqrt{14}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1657
Rule 634
Rule 618
Rule 204
Rule 628
Rubi steps
\begin{align*} \int \frac{2+x+3 x^2-5 x^3+4 x^4}{3+2 x+5 x^2} \, dx &=\int \left (\frac{81}{125}-\frac{33 x}{25}+\frac{4 x^2}{5}+\frac{7+458 x}{125 \left (3+2 x+5 x^2\right )}\right ) \, dx\\ &=\frac{81 x}{125}-\frac{33 x^2}{50}+\frac{4 x^3}{15}+\frac{1}{125} \int \frac{7+458 x}{3+2 x+5 x^2} \, dx\\ &=\frac{81 x}{125}-\frac{33 x^2}{50}+\frac{4 x^3}{15}+\frac{229}{625} \int \frac{2+10 x}{3+2 x+5 x^2} \, dx-\frac{423}{625} \int \frac{1}{3+2 x+5 x^2} \, dx\\ &=\frac{81 x}{125}-\frac{33 x^2}{50}+\frac{4 x^3}{15}+\frac{229}{625} \log \left (3+2 x+5 x^2\right )+\frac{846}{625} \operatorname{Subst}\left (\int \frac{1}{-56-x^2} \, dx,x,2+10 x\right )\\ &=\frac{81 x}{125}-\frac{33 x^2}{50}+\frac{4 x^3}{15}-\frac{423 \tan ^{-1}\left (\frac{1+5 x}{\sqrt{14}}\right )}{625 \sqrt{14}}+\frac{229}{625} \log \left (3+2 x+5 x^2\right )\\ \end{align*}
Mathematica [A] time = 0.0180964, size = 50, normalized size = 0.89 \[ \frac{35 x \left (200 x^2-495 x+486\right )+9618 \log \left (5 x^2+2 x+3\right )-1269 \sqrt{14} \tan ^{-1}\left (\frac{5 x+1}{\sqrt{14}}\right )}{26250} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.048, size = 44, normalized size = 0.8 \begin{align*}{\frac{4\,{x}^{3}}{15}}-{\frac{33\,{x}^{2}}{50}}+{\frac{81\,x}{125}}+{\frac{229\,\ln \left ( 5\,{x}^{2}+2\,x+3 \right ) }{625}}-{\frac{423\,\sqrt{14}}{8750}\arctan \left ({\frac{ \left ( 10\,x+2 \right ) \sqrt{14}}{28}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.54292, size = 58, normalized size = 1.04 \begin{align*} \frac{4}{15} \, x^{3} - \frac{33}{50} \, x^{2} - \frac{423}{8750} \, \sqrt{14} \arctan \left (\frac{1}{14} \, \sqrt{14}{\left (5 \, x + 1\right )}\right ) + \frac{81}{125} \, x + \frac{229}{625} \, \log \left (5 \, x^{2} + 2 \, x + 3\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.23313, size = 157, normalized size = 2.8 \begin{align*} \frac{4}{15} \, x^{3} - \frac{33}{50} \, x^{2} - \frac{423}{8750} \, \sqrt{14} \arctan \left (\frac{1}{14} \, \sqrt{14}{\left (5 \, x + 1\right )}\right ) + \frac{81}{125} \, x + \frac{229}{625} \, \log \left (5 \, x^{2} + 2 \, x + 3\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.123366, size = 61, normalized size = 1.09 \begin{align*} \frac{4 x^{3}}{15} - \frac{33 x^{2}}{50} + \frac{81 x}{125} + \frac{229 \log{\left (x^{2} + \frac{2 x}{5} + \frac{3}{5} \right )}}{625} - \frac{423 \sqrt{14} \operatorname{atan}{\left (\frac{5 \sqrt{14} x}{14} + \frac{\sqrt{14}}{14} \right )}}{8750} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.17232, size = 58, normalized size = 1.04 \begin{align*} \frac{4}{15} \, x^{3} - \frac{33}{50} \, x^{2} - \frac{423}{8750} \, \sqrt{14} \arctan \left (\frac{1}{14} \, \sqrt{14}{\left (5 \, x + 1\right )}\right ) + \frac{81}{125} \, x + \frac{229}{625} \, \log \left (5 \, x^{2} + 2 \, x + 3\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]